
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">

	<title>File admin\controller\mail\reward.php | OpenCart API API</title>
	<link rel="stylesheet" href="http://localhost\opencart-master/docs/api/assets/main.css">
	<script src="http://localhost\opencart-master/docs/api/assets/main.js" defer></script>
</head>

<body class="layout">
	<div class="layout-aside">
	<div class="menu">
			<div class="menu-section">
				<h3>Namespaces</h3>
	<ul>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.html">Opencart</a>
	<ul>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.html">Admin</a>
	<ul>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.html">Controller</a>
	<ul>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Catalog.html">Catalog</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Cms.html">Cms</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Common.html">Common</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Customer.html">Customer</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Design.html">Design</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Error.html">Error</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Event.html">Event</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Extension.html">Extension</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Localisation.html">Localisation</a>
			</li>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Mail.html">Mail</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Marketing.html">Marketing</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Marketplace.html">Marketplace</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Report.html">Report</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Sale.html">Sale</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Setting.html">Setting</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Startup.html">Startup</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Tool.html">Tool</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.User.html">User</a>
			</li>
	</ul>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.html">Model</a>
			</li>
	</ul>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html">Catalog</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.html">System</a>
			</li>
	</ul>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-none.html">none</a>
			</li>
	</ul>
			</div>

		<div class="menu-section">
			<h3>Classes</h3>
			<ul>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Affiliate.html">
							Affiliate
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Authorize.html">
							Authorize
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Customer.html">
							Customer
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Forgotten.html">
							Forgotten
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Gdpr.html">
							Gdpr
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Returns.html">
							Returns
						</a>
					</li>
					<li class="active">
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Reward.html">
							Reward
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Subscription.html">
							Subscription
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Transaction.html">
							Transaction
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Voucher.html">
							Voucher
						</a>
					</li>
			</ul>
		</div>
	</div>
	</div>

	<div class="layout-main">
		<div class="layout-navbar">
	<nav class="navbar">
		<div class="navbar-left">
			<ul class="navbar-links">
				<li>
					<a href="http://localhost\opencart-master/docs/api/index.html">Overview</a>
				</li>
				<li>
					
						<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Controller.Mail.html">Namespace</a>
					
				</li>
<li class="active"><a href="http://localhost\opencart-master/docs/api/Opencart.Admin.Controller.Mail.Reward.html">Class</a></li>				<li>
					<a href="http://localhost\opencart-master/docs/api/tree.html">Tree</a>
				</li>
			</ul>
		</div>
		<div class="navbar-right">
	<div class="search" data-elements="http://localhost\opencart-master/docs/api/assets/elements.js">
		<input class="search-input" placeholder="Search class, function or namespace" autofocus>
		<ul class="search-results"></ul>
	</div>
		</div>
	</nav>
		</div>

		<div class="layout-content">
	<table class="source"><tr id="1" class="source-line"><td><a class="source-lineNum" href="#1">  1: </a></td><td><span class="php-tag">&lt;?php</span></td></tr><tr id="2" class="source-line"><td><a class="source-lineNum" href="#2">  2: </a></td><td><span class="php-tag"></span><span class="php-kw">namespace</span> Opencart\Admin\Controller\Mail;</td></tr><tr id="3" class="source-line"><td><a class="source-lineNum" href="#3">  3: </a></td><td><span class="php-comment">/**</span></td></tr><tr id="4" class="source-line"><td><a class="source-lineNum" href="#4">  4: </a></td><td><span class="php-comment"> * Class Reward</span></td></tr><tr id="5" class="source-line"><td><a class="source-lineNum" href="#5">  5: </a></td><td><span class="php-comment"> *</span></td></tr><tr id="6" class="source-line"><td><a class="source-lineNum" href="#6">  6: </a></td><td><span class="php-comment"> * @package Opencart\Admin\Controller\Mail</span></td></tr><tr id="7" class="source-line"><td><a class="source-lineNum" href="#7">  7: </a></td><td><span class="php-comment"> */</span></td></tr><tr id="8" class="source-line"><td><a class="source-lineNum" href="#8">  8: </a></td><td><span class="php-kw">class</span> Reward <span class="php-kw">extends</span> \Opencart\System\Engine\Controller {</td></tr><tr id="9" class="source-line"><td><a class="source-lineNum" href="#9">  9: </a></td><td>	<span class="php-comment">/**</span></td></tr><tr id="10" class="source-line"><td><a class="source-lineNum" href="#10"> 10: </a></td><td><span class="php-comment">	 * Index</span></td></tr><tr id="11" class="source-line"><td><a class="source-lineNum" href="#11"> 11: </a></td><td><span class="php-comment">	 *</span></td></tr><tr id="12" class="source-line"><td><a class="source-lineNum" href="#12"> 12: </a></td><td><span class="php-comment">	 * @param string            $route</span></td></tr><tr id="13" class="source-line"><td><a class="source-lineNum" href="#13"> 13: </a></td><td><span class="php-comment">	 * @param array&lt;int, mixed&gt; $args</span></td></tr><tr id="14" class="source-line"><td><a class="source-lineNum" href="#14"> 14: </a></td><td><span class="php-comment">	 * @param mixed             $output</span></td></tr><tr id="15" class="source-line"><td><a class="source-lineNum" href="#15"> 15: </a></td><td><span class="php-comment">	 *</span></td></tr><tr id="16" class="source-line"><td><a class="source-lineNum" href="#16"> 16: </a></td><td><span class="php-comment">	 * @throws \Exception</span></td></tr><tr id="17" class="source-line"><td><a class="source-lineNum" href="#17"> 17: </a></td><td><span class="php-comment">	 *</span></td></tr><tr id="18" class="source-line"><td><a class="source-lineNum" href="#18"> 18: </a></td><td><span class="php-comment">	 * @return void</span></td></tr><tr id="19" class="source-line"><td><a class="source-lineNum" href="#19"> 19: </a></td><td><span class="php-comment">	 */</span></td></tr><tr id="20" class="source-line"><td><a class="source-lineNum" href="#20"> 20: </a></td><td>	<span class="php-kw">public</span> <span class="php-kw">function</span> index(string <span class="php-var">$route</span>, <span class="php-kw">array</span> <span class="php-var">$args</span>, <span class="php-var">$output</span>): void {</td></tr><tr id="21" class="source-line"><td><a class="source-lineNum" href="#21"> 21: </a></td><td>		<span class="php-kw">if</span> (<span class="php-kw">isset</span>(<span class="php-var">$args</span>[<span class="php-num">0</span>])) {</td></tr><tr id="22" class="source-line"><td><a class="source-lineNum" href="#22"> 22: </a></td><td>			<span class="php-var">$customer_id</span> = (int)<span class="php-var">$args</span>[<span class="php-num">0</span>];</td></tr><tr id="23" class="source-line"><td><a class="source-lineNum" href="#23"> 23: </a></td><td>		} <span class="php-kw">else</span> {</td></tr><tr id="24" class="source-line"><td><a class="source-lineNum" href="#24"> 24: </a></td><td>			<span class="php-var">$customer_id</span> = <span class="php-num">0</span>;</td></tr><tr id="25" class="source-line"><td><a class="source-lineNum" href="#25"> 25: </a></td><td>		}</td></tr><tr id="26" class="source-line"><td><a class="source-lineNum" href="#26"> 26: </a></td><td></td></tr><tr id="27" class="source-line"><td><a class="source-lineNum" href="#27"> 27: </a></td><td>		<span class="php-kw">if</span> (<span class="php-kw">isset</span>(<span class="php-var">$args</span>[<span class="php-num">1</span>])) {</td></tr><tr id="28" class="source-line"><td><a class="source-lineNum" href="#28"> 28: </a></td><td>			<span class="php-var">$description</span> = (string)<span class="php-var">$args</span>[<span class="php-num">1</span>];</td></tr><tr id="29" class="source-line"><td><a class="source-lineNum" href="#29"> 29: </a></td><td>		} <span class="php-kw">else</span> {</td></tr><tr id="30" class="source-line"><td><a class="source-lineNum" href="#30"> 30: </a></td><td>			<span class="php-var">$description</span> = <span class="php-str">&#039;&#039;</span>;</td></tr><tr id="31" class="source-line"><td><a class="source-lineNum" href="#31"> 31: </a></td><td>		}</td></tr><tr id="32" class="source-line"><td><a class="source-lineNum" href="#32"> 32: </a></td><td></td></tr><tr id="33" class="source-line"><td><a class="source-lineNum" href="#33"> 33: </a></td><td>		<span class="php-kw">if</span> (<span class="php-kw">isset</span>(<span class="php-var">$args</span>[<span class="php-num">2</span>])) {</td></tr><tr id="34" class="source-line"><td><a class="source-lineNum" href="#34"> 34: </a></td><td>			<span class="php-var">$points</span> = (int)<span class="php-var">$args</span>[<span class="php-num">2</span>];</td></tr><tr id="35" class="source-line"><td><a class="source-lineNum" href="#35"> 35: </a></td><td>		} <span class="php-kw">else</span> {</td></tr><tr id="36" class="source-line"><td><a class="source-lineNum" href="#36"> 36: </a></td><td>			<span class="php-var">$points</span> = <span class="php-num">0</span>;</td></tr><tr id="37" class="source-line"><td><a class="source-lineNum" href="#37"> 37: </a></td><td>		}</td></tr><tr id="38" class="source-line"><td><a class="source-lineNum" href="#38"> 38: </a></td><td></td></tr><tr id="39" class="source-line"><td><a class="source-lineNum" href="#39"> 39: </a></td><td>		<span class="php-kw">if</span> (<span class="php-kw">isset</span>(<span class="php-var">$args</span>[<span class="php-num">3</span>])) {</td></tr><tr id="40" class="source-line"><td><a class="source-lineNum" href="#40"> 40: </a></td><td>			<span class="php-var">$order_id</span> = (int)<span class="php-var">$args</span>[<span class="php-num">3</span>];</td></tr><tr id="41" class="source-line"><td><a class="source-lineNum" href="#41"> 41: </a></td><td>		} <span class="php-kw">else</span> {</td></tr><tr id="42" class="source-line"><td><a class="source-lineNum" href="#42"> 42: </a></td><td>			<span class="php-var">$order_id</span> = <span class="php-num">0</span>;</td></tr><tr id="43" class="source-line"><td><a class="source-lineNum" href="#43"> 43: </a></td><td>		}</td></tr><tr id="44" class="source-line"><td><a class="source-lineNum" href="#44"> 44: </a></td><td></td></tr><tr id="45" class="source-line"><td><a class="source-lineNum" href="#45"> 45: </a></td><td>		<span class="php-var">$this</span>-&gt;load-&gt;model(<span class="php-str">&#039;customer/customer&#039;</span>);</td></tr><tr id="46" class="source-line"><td><a class="source-lineNum" href="#46"> 46: </a></td><td></td></tr><tr id="47" class="source-line"><td><a class="source-lineNum" href="#47"> 47: </a></td><td>		<span class="php-var">$customer_info</span> = <span class="php-var">$this</span>-&gt;model_customer_customer-&gt;getCustomer(<span class="php-var">$customer_id</span>);</td></tr><tr id="48" class="source-line"><td><a class="source-lineNum" href="#48"> 48: </a></td><td></td></tr><tr id="49" class="source-line"><td><a class="source-lineNum" href="#49"> 49: </a></td><td>		<span class="php-kw">if</span> (<span class="php-var">$customer_info</span>) {</td></tr><tr id="50" class="source-line"><td><a class="source-lineNum" href="#50"> 50: </a></td><td>			<span class="php-var">$this</span>-&gt;load-&gt;language(<span class="php-str">&#039;mail/reward&#039;</span>);</td></tr><tr id="51" class="source-line"><td><a class="source-lineNum" href="#51"> 51: </a></td><td></td></tr><tr id="52" class="source-line"><td><a class="source-lineNum" href="#52"> 52: </a></td><td>			<span class="php-var">$this</span>-&gt;load-&gt;model(<span class="php-str">&#039;setting/store&#039;</span>);</td></tr><tr id="53" class="source-line"><td><a class="source-lineNum" href="#53"> 53: </a></td><td></td></tr><tr id="54" class="source-line"><td><a class="source-lineNum" href="#54"> 54: </a></td><td>			<span class="php-var">$store_info</span> = <span class="php-var">$this</span>-&gt;model_setting_store-&gt;getStore(<span class="php-var">$customer_info</span>[<span class="php-str">&#039;store_id&#039;</span>]);</td></tr><tr id="55" class="source-line"><td><a class="source-lineNum" href="#55"> 55: </a></td><td></td></tr><tr id="56" class="source-line"><td><a class="source-lineNum" href="#56"> 56: </a></td><td>			<span class="php-kw">if</span> (<span class="php-var">$store_info</span>) {</td></tr><tr id="57" class="source-line"><td><a class="source-lineNum" href="#57"> 57: </a></td><td>				<span class="php-var">$store_name</span> = html_entity_decode(<span class="php-var">$store_info</span>[<span class="php-str">&#039;name&#039;</span>], ENT_QUOTES, <span class="php-str">&#039;UTF-8&#039;</span>);</td></tr><tr id="58" class="source-line"><td><a class="source-lineNum" href="#58"> 58: </a></td><td>				<span class="php-var">$store_url</span> = <span class="php-var">$store_info</span>[<span class="php-str">&#039;url&#039;</span>];</td></tr><tr id="59" class="source-line"><td><a class="source-lineNum" href="#59"> 59: </a></td><td>			} <span class="php-kw">else</span> {</td></tr><tr id="60" class="source-line"><td><a class="source-lineNum" href="#60"> 60: </a></td><td>				<span class="php-var">$store_name</span> = html_entity_decode(<span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_name&#039;</span>), ENT_QUOTES, <span class="php-str">&#039;UTF-8&#039;</span>);</td></tr><tr id="61" class="source-line"><td><a class="source-lineNum" href="#61"> 61: </a></td><td>				<span class="php-var">$store_url</span> = HTTP_CATALOG;</td></tr><tr id="62" class="source-line"><td><a class="source-lineNum" href="#62"> 62: </a></td><td>			}</td></tr><tr id="63" class="source-line"><td><a class="source-lineNum" href="#63"> 63: </a></td><td></td></tr><tr id="64" class="source-line"><td><a class="source-lineNum" href="#64"> 64: </a></td><td>			<span class="php-var">$this</span>-&gt;load-&gt;model(<span class="php-str">&#039;localisation/language&#039;</span>);</td></tr><tr id="65" class="source-line"><td><a class="source-lineNum" href="#65"> 65: </a></td><td></td></tr><tr id="66" class="source-line"><td><a class="source-lineNum" href="#66"> 66: </a></td><td>			<span class="php-var">$language_info</span> = <span class="php-var">$this</span>-&gt;model_localisation_language-&gt;getLanguage(<span class="php-var">$customer_info</span>[<span class="php-str">&#039;language_id&#039;</span>]);</td></tr><tr id="67" class="source-line"><td><a class="source-lineNum" href="#67"> 67: </a></td><td></td></tr><tr id="68" class="source-line"><td><a class="source-lineNum" href="#68"> 68: </a></td><td>			<span class="php-kw">if</span> (<span class="php-var">$language_info</span>) {</td></tr><tr id="69" class="source-line"><td><a class="source-lineNum" href="#69"> 69: </a></td><td>				<span class="php-var">$language_code</span> = <span class="php-var">$language_info</span>[<span class="php-str">&#039;code&#039;</span>];</td></tr><tr id="70" class="source-line"><td><a class="source-lineNum" href="#70"> 70: </a></td><td>			} <span class="php-kw">else</span> {</td></tr><tr id="71" class="source-line"><td><a class="source-lineNum" href="#71"> 71: </a></td><td>				<span class="php-var">$language_code</span> = <span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_language&#039;</span>);</td></tr><tr id="72" class="source-line"><td><a class="source-lineNum" href="#72"> 72: </a></td><td>			}</td></tr><tr id="73" class="source-line"><td><a class="source-lineNum" href="#73"> 73: </a></td><td></td></tr><tr id="74" class="source-line"><td><a class="source-lineNum" href="#74"> 74: </a></td><td>			<span class="php-var">$this</span>-&gt;load-&gt;language(<span class="php-str">&#039;default&#039;</span>, <span class="php-str">&#039;mail&#039;</span>, <span class="php-var">$language_code</span>);</td></tr><tr id="75" class="source-line"><td><a class="source-lineNum" href="#75"> 75: </a></td><td>			<span class="php-var">$this</span>-&gt;load-&gt;language(<span class="php-str">&#039;mail/reward&#039;</span>, <span class="php-str">&#039;mail&#039;</span>, <span class="php-var">$language_code</span>);</td></tr><tr id="76" class="source-line"><td><a class="source-lineNum" href="#76"> 76: </a></td><td></td></tr><tr id="77" class="source-line"><td><a class="source-lineNum" href="#77"> 77: </a></td><td>			<span class="php-var">$subject</span> = sprintf(<span class="php-var">$this</span>-&gt;language-&gt;get(<span class="php-str">&#039;mail_text_subject&#039;</span>), <span class="php-var">$store_name</span>);</td></tr><tr id="78" class="source-line"><td><a class="source-lineNum" href="#78"> 78: </a></td><td></td></tr><tr id="79" class="source-line"><td><a class="source-lineNum" href="#79"> 79: </a></td><td>			<span class="php-var">$data</span>[<span class="php-str">&#039;text_received&#039;</span>] = sprintf(<span class="php-var">$this</span>-&gt;language-&gt;get(<span class="php-str">&#039;mail_text_received&#039;</span>), <span class="php-var">$points</span>);</td></tr><tr id="80" class="source-line"><td><a class="source-lineNum" href="#80"> 80: </a></td><td>			<span class="php-var">$data</span>[<span class="php-str">&#039;text_total&#039;</span>] = sprintf(<span class="php-var">$this</span>-&gt;language-&gt;get(<span class="php-str">&#039;mail_text_total&#039;</span>), <span class="php-var">$this</span>-&gt;model_customer_customer-&gt;getRewardTotal(<span class="php-var">$customer_id</span>));</td></tr><tr id="81" class="source-line"><td><a class="source-lineNum" href="#81"> 81: </a></td><td></td></tr><tr id="82" class="source-line"><td><a class="source-lineNum" href="#82"> 82: </a></td><td>			<span class="php-var">$data</span>[<span class="php-str">&#039;store&#039;</span>] = <span class="php-var">$store_name</span>;</td></tr><tr id="83" class="source-line"><td><a class="source-lineNum" href="#83"> 83: </a></td><td>			<span class="php-var">$data</span>[<span class="php-str">&#039;store_url&#039;</span>] = <span class="php-var">$store_url</span>;</td></tr><tr id="84" class="source-line"><td><a class="source-lineNum" href="#84"> 84: </a></td><td></td></tr><tr id="85" class="source-line"><td><a class="source-lineNum" href="#85"> 85: </a></td><td>			<span class="php-kw">if</span> (<span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_engine&#039;</span>)) {</td></tr><tr id="86" class="source-line"><td><a class="source-lineNum" href="#86"> 86: </a></td><td>				<span class="php-var">$mail_option</span> = [</td></tr><tr id="87" class="source-line"><td><a class="source-lineNum" href="#87"> 87: </a></td><td>					<span class="php-str">&#039;parameter&#039;</span>     =&gt; <span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_parameter&#039;</span>),</td></tr><tr id="88" class="source-line"><td><a class="source-lineNum" href="#88"> 88: </a></td><td>					<span class="php-str">&#039;smtp_hostname&#039;</span> =&gt; <span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_smtp_hostname&#039;</span>),</td></tr><tr id="89" class="source-line"><td><a class="source-lineNum" href="#89"> 89: </a></td><td>					<span class="php-str">&#039;smtp_username&#039;</span> =&gt; <span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_smtp_username&#039;</span>),</td></tr><tr id="90" class="source-line"><td><a class="source-lineNum" href="#90"> 90: </a></td><td>					<span class="php-str">&#039;smtp_password&#039;</span> =&gt; html_entity_decode(<span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_smtp_password&#039;</span>), ENT_QUOTES, <span class="php-str">&#039;UTF-8&#039;</span>),</td></tr><tr id="91" class="source-line"><td><a class="source-lineNum" href="#91"> 91: </a></td><td>					<span class="php-str">&#039;smtp_port&#039;</span>     =&gt; <span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_smtp_port&#039;</span>),</td></tr><tr id="92" class="source-line"><td><a class="source-lineNum" href="#92"> 92: </a></td><td>					<span class="php-str">&#039;smtp_timeout&#039;</span>  =&gt; <span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_smtp_timeout&#039;</span>)</td></tr><tr id="93" class="source-line"><td><a class="source-lineNum" href="#93"> 93: </a></td><td>				];</td></tr><tr id="94" class="source-line"><td><a class="source-lineNum" href="#94"> 94: </a></td><td></td></tr><tr id="95" class="source-line"><td><a class="source-lineNum" href="#95"> 95: </a></td><td>				<span class="php-var">$mail</span> = <span class="php-kw">new</span> \Opencart\System\Library\Mail(<span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_mail_engine&#039;</span>), <span class="php-var">$mail_option</span>);</td></tr><tr id="96" class="source-line"><td><a class="source-lineNum" href="#96"> 96: </a></td><td>				<span class="php-var">$mail</span>-&gt;setTo(<span class="php-var">$customer_info</span>[<span class="php-str">&#039;email&#039;</span>]);</td></tr><tr id="97" class="source-line"><td><a class="source-lineNum" href="#97"> 97: </a></td><td>				<span class="php-var">$mail</span>-&gt;setFrom(<span class="php-var">$this</span>-&gt;config-&gt;get(<span class="php-str">&#039;config_email&#039;</span>));</td></tr><tr id="98" class="source-line"><td><a class="source-lineNum" href="#98"> 98: </a></td><td>				<span class="php-var">$mail</span>-&gt;setSender(<span class="php-var">$store_name</span>);</td></tr><tr id="99" class="source-line"><td><a class="source-lineNum" href="#99"> 99: </a></td><td>				<span class="php-var">$mail</span>-&gt;setSubject(<span class="php-var">$subject</span>);</td></tr><tr id="100" class="source-line"><td><a class="source-lineNum" href="#100">100: </a></td><td>				<span class="php-var">$mail</span>-&gt;setHtml(<span class="php-var">$this</span>-&gt;load-&gt;view(<span class="php-str">&#039;mail/reward&#039;</span>, <span class="php-var">$data</span>));</td></tr><tr id="101" class="source-line"><td><a class="source-lineNum" href="#101">101: </a></td><td>				<span class="php-var">$mail</span>-&gt;send();</td></tr><tr id="102" class="source-line"><td><a class="source-lineNum" href="#102">102: </a></td><td>			}</td></tr><tr id="103" class="source-line"><td><a class="source-lineNum" href="#103">103: </a></td><td>		}</td></tr><tr id="104" class="source-line"><td><a class="source-lineNum" href="#104">104: </a></td><td>	}</td></tr><tr id="105" class="source-line"><td><a class="source-lineNum" href="#105">105: </a></td><td>}</td></tr><tr id="106" class="source-line"><td><a class="source-lineNum" href="#106">106: </a></td><td></td></tr></table>
		</div>

		<div class="layout-footer">
			OpenCart API API documentation generated by <a href="https://www.apigen.org">ApiGen dev-master</a>
		</div>
	</div>

	<div class="layout-rest">
		<div class="navbar"></div>
	</div>
</body>
</html>
